<?php

namespace app\admin\validate;

use think\Validate;

class Notice extends Validate
{
    protected $rule = [
        "type|通知类型"=>'require|number',
        "target_type|目标全体"=>'require|number',
        'title|标题'=>'require',
        'admin_id|消息来源'=>'require',
        'content|内容'=>'require'
    ];


    protected $message = [];
    protected $scene=[
        'create'=>['type','target_type','title','admin_id','content'],
     ];
}
